home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 10 - 1994 / 10.10 Oct 94 / Sprocket / Interfaces / AppleEventHandling.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-25  |  1.3 KB  |  50 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        AppleEventHandling.h
  3.  
  4.     Contains:    Minimalist support for the required and Display Manager suites
  5.                 To really support AppleScript™, we’ll do more work in here.
  6.  
  7.     Written by: Dave Falkenburg
  8.  
  9.     Copyright:    © 1993 by Dave Falkenburg, all rights reserved.
  10.  
  11.     Change History (most recent first):     
  12.  */
  13.  
  14. #ifndef        _APPLEEVENTHANDLING_
  15. #define        _APPLEEVENTHANDLING_
  16.  
  17. #ifndef        __APPLEEVENTS__
  18. #include    <AppleEvents.h>
  19. #endif
  20.  
  21. #ifndef        __OCESTANDARDMAIL__
  22. #include    <OCEStandardMail.h>
  23. #endif
  24.  
  25. #ifndef        _APPLIB_
  26. #include    "AppLib.h"
  27. #endif
  28.  
  29.  
  30. void            InstallAppleEventHandlers(void);
  31. OSErr            CheckAppleEventForMissingParams(AppleEvent * theAppleEvent);
  32.  
  33. //    Handlers for the Required Suite:
  34.  
  35. typedef OSErr    (*EachDocumentProcPtr)(LetterDescriptor *aFile,void * param);
  36. OSErr            ForEachDocumentInList(AEDescList documentList,EachDocumentProcPtr documentProc,void * documentParam);
  37.  
  38. pascal OSErr    HandleOpenApplication(AppleEvent * theAppleEvent,AppleEvent * reply, long refCon);
  39. pascal OSErr    HandleOpenDocuments(AppleEvent * theAppleEvent,AppleEvent * reply, long refCon);
  40. pascal OSErr    HandlePrintDocuments(AppleEvent * theAppleEvent,AppleEvent * reply, long refCon);
  41. pascal OSErr    HandleQuitApplication(AppleEvent * theAppleEvent,AppleEvent * reply, long refCon);
  42.  
  43.  
  44. //    Display Manager:
  45.  
  46. pascal OSErr    HandleSystemConfigNotice(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon);
  47.  
  48.  
  49. #endif
  50.